<?php

class Empeval_Methods_Response_GetPositions {
	
	/**
	 *
	 * @var Empeval_Methods_Data_ResponseStatus
	 */
	public $responseStatus;
	
	/**
	 * 
	 * @var Empeval_Methods_Data_Position[]
	 */
	public $positions = array();
	
	public function __construct($status, $positions, $bonusGroups) {
		$this->responseStatus = new Empeval_Methods_Data_ResponseStatus($status);
		foreach ($positions as $position) {
			$this->positions[] = new Empeval_Methods_Data_Position($position, true);
		}
		foreach ($bonusGroups as $bg) {
			$this->bonusGroups[] = new Empeval_Methods_Data_BonusGroup($bg);
		}
	}
	
}